import Vue from 'vue'
import Router from 'vue-router'
import Test from '@/components/test.vue'
import Index from '@/components/Index/Index.vue'
import My from '@/components/My/My.vue'
import MyOrder from '@/components/My/MyOrder.vue'
import MyOrderDetails from '@/components/My/myOrderDetails/MyOrderDetails.vue'
import Pay from '@/components/pay/Pay.vue'
import ScanGoods from '@/components/scanGoods/ScanGoods.vue';
// import BMap from '@/components/Index/BMap.vue'
import Question from '@/components/My/myOrderDetails/question/Question.vue'
import Login from '@/components/login/Login.vue'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/bmap',
    //   name: 'bmap',
    //   component:BMap 
    // }, 
    // {
    //   path: '/',
    //   name: 'test',
    //   component: Test
    // },   
     {
      path: '/',
      name: 'Index',
      component: Index
    },
    
    {
      path: '/my',
      name: 'My',
      component: My,
    },{
      path:"/my/myOrder",
      name:"myOrder",
      component: MyOrder
    }
    ,{
      path:"/my/myOrder/myOrderDetails",
      name:"myOrderDetails",
      component: MyOrderDetails
    },{
      path:"/pay",
      name:"Pay",
      component: Pay
    },{
      path:"/scanGoods",
      name:"ScanGoods",
      component: ScanGoods
    
    },{
      path:"/question",
      name:"Question",
      component: Question
    
    }
    ,{
      path:"/login",
      name:"Login",
      component: Login
    
    }
  ]
})
